//
//  BeeNewsTableCell.m
//  BeeWeb
//
//  Created by Jimmy on 29/10/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#define  FONTFAMILY @"STHeitiTC-Medium"
#define FONTSIZE 12

#import "photolistCell.h"
#import "JSON.h"
#import "AppDelegate.h"
#import <QuartzCore/QuartzCore.h>



@implementation photolistCell



- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
        self.backgroundColor=[UIColor  clearColor];
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        self.updateDate=[self  customLabel:CGRectMake(120, 5, 150, 20)];
        self.orderId=[self  customLabel:CGRectMake(10, 5, 150, 20)];
        self.orderId.font=[UIFont boldSystemFontOfSize:12];
        
        self.flid_remark=[self  customLabel:CGRectMake(10, 25, 300, 20)];
         self.flid_name=[self  customLabel:CGRectMake(10, 45, 300, 20)];
        [self addSubview:self.updateDate];
        [self addSubview:self.orderId];
        [self addSubview:self.flid_remark];
         [self addSubview:self.flid_name];
        /*UIImageView *imageView_=[[UIImageView alloc] initWithFrame:CGRectMake(0, 69, 320, 1)];
        self.lineImage.image=[UIImage imageNamed:@"split.png"];
        self.lineImage=imageView_;
         [self addSubview:self.lineImage];
        [imageView_ release];
        */
        //self.selectionStyle = UITableViewCellSelectionStyleGray;
    }
    return self; 
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(UILabel*) customLabel:(CGRect) frame{
    UILabel *_label=[[UILabel alloc] initWithFrame:frame];
    _label.lineBreakMode = UILineBreakModeTailTruncation;
    _label.numberOfLines = 1;
    _label.opaque = NO; // 选中Opaque表示视图后面的任何内容都不应该绘制
    _label.backgroundColor = [UIColor clearColor];
    _label.font=[UIFont fontWithName:FONTFAMILY size:FONTSIZE];
    _label.textColor=[UIColor  blackColor];
     return [_label  autorelease];
} 
- (void)dealloc {
    [_updateDate  release];
    [_orderId  release];
    //[_lineImage  release];
    [super dealloc];
}


@end
